package com.bawei.park2211a.visit

import androidx.lifecycle.MutableLiveData
import com.bawei.base.bean.VisitEntity
import com.bawei.base.mvvm.BaseViewModel
import com.bawei.base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class VisitViewModel @Inject constructor(var apiService: ApiService):BaseViewModel(){
    var visitList=MutableLiveData<MutableList<VisitEntity>>()
    fun visit(){
        httpRequest({apiService.visit()},{visitList.postValue(it)})
    }
}